#include <stdio.h>

#define BUFSIZE 16

int main(int argc, char *argv[])
{
	if(argc < 2){
		return 1;
	}
	FILE * fp = NULL;
	char * buf[BUFSIZE] = {0};
	fp = fopen(argv[1], "r");

	printf("文件流最开始的地方：%ld\n", ftell(fp));
	
	fseek(fp, 15, SEEK_CUR);

	printf("fseek():%ld\n", ftell(fp));

	fread(buf, 1, 10, fp);

	printf("fgets():%ld\n", ftell(fp));

	rewind(fp);

	printf("rewind():%ld\n", ftell(fp));

	return 0;
}


